package com.api.shopapi.service;


import com.api.shopapi.entity.Zone;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ZoneService {

    int insert(Zone zone);

    int deleteByZoneCode(String zoneCode);

    int updateByZoneCode(Zone zone);

    Zone getByZoneCode(String zoneCode);

    List<Zone> getList();

    List<Zone> getListByParentZoneCode(String parentZoneCode);

    List<Zone> getListByParentZoneCodeGovernmentCode(String parentZoneCode,String governmentCode);


    Zone getByName(String name,String governmentCode);

    List<Zone> getListByGovernmentCode(String governmentCode);

    Zone getByByParentZoneCode(String parentZoneCode);


    List<Zone> getListByParentZoneCodeGovernmentCode1(String zoneCode, String governmentCode);

    List<Zone> getZone(String governmentCode);

    Zone getZoneList(String parentZoneCode, String governmentCode);
}
